<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>推广费用展示</h2>

	</div>
    <div class="tools">
            <form action="{:U()}" method="post">
                选择时间：
                <input type="text" value="{$begin}" name="time_start" class="date" style="width:80px;" onclick="laydate()"> - <input type="text" value="{$end}" name="time_end" class="date" style="width:80px;" onclick="laydate()">
                <span class="buttons">
                    <input type="submit"  id="submit" class="btn" value="开始查询">
                </span>
				<a  class="btn" href="{:U('add')}">添加费用</a>
            </form>
			
    </div>

	<!-- 数据列表 -->
	<div class="data-table">
        <div class="data-table table-striped">
<table class="">
    <thead>
        <tr>
		<th class="">日期</th>
        <th class="">百度</th>
		<th class="">360</th>
        <th class="">谷歌</th>
		<th class="">搜狗</th>
        <th class="">大众点评</th>
		<th class="">微博</th>
        <th class="">微信</th>
        <th class="">天猫</th>
		<th class="">神马</th>
        <th class="">顾客推荐</th>
        <th class="">员工推荐</th>
        <th class="">广点通</th>
        <th class="">小红书</th>
        <th class="">美柚</th>
        <th class="">婚礼纪</th>
        <th class="">其他</th>
		<th class="">总计</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
	<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
			<td>{$vo.time|date="Y-m-d",###}</td>
			<td>{$vo.baidu}</td>
			<td>{$vo.so}</td>
			<td>{$vo.google}</td>
			<td>{$vo.sogou}</td>
			<td>{$vo.dazhong}</td>
			<td>{$vo.weibo}</td>
			<td>{$vo.weixin}</td>
			<td>{$vo.tianmao}</td>
			<td>{$vo.smtg}</td>
			<td>{$vo.laoguketj}</td>
			<td>{$vo.yuangongtj}</td>
			<td>{$vo.gdt}</td>
			<td>{$vo.xhs}</td>
			<td>{$vo.my}</td>
			<td>{$vo.hlj}</td>
			<td>{$vo.qt}</td>
			<td>{$vo['tianmao']+$vo['weixin']+$vo['weibo']+$vo['dazhong']+$vo['sogou']+$vo['google']+$vo['so']+$vo['baidu']+$vo['smtg']+$vo['laoguketj']+$vo['yuangongtj']+$vo['gdt']+$vo['xhs']+$vo['my']+$vo['hlj']+$vo['qt']}</td>
			<td>
				<a  title="更新 " class="gengxin"  href="{:U('edit?id='.$vo['id'])}"><img src="/Public/Admin/images/update.png" alt="更新"></a>
				<a class="confirm ajax-get" title="删除" href="{:U('del?id='.$vo['id'])}"><img src="/Public/Admin/images/delete.png" alt="删除"></a>
            </td>
		</tr>
		</volist>
		<else/>
		<td colspan="16" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
        <tr>
            <td style="background-color:#51D0CA;">总计</td>
			<td style="background-color:#51D0CA;">{$zj.baidu}</td>
			<td style="background-color:#51D0CA;">{$zj.so}</td>
			<td style="background-color:#51D0CA;">{$zj.google}</td>
			<td style="background-color:#51D0CA;">{$zj.sogou}</td>
			<td style="background-color:#51D0CA;">{$zj.dazhong}</td>
			<td style="background-color:#51D0CA;">{$zj.weibo}</td>
			<td style="background-color:#51D0CA;">{$zj.weixin}</td>
			<td style="background-color:#51D0CA;">{$zj.tianmao}</td>
			<td style="background-color:#51D0CA;">{$zj.smtg}</td>
			<td style="background-color:#51D0CA;">{$zj.laoguketj}</td>
			<td style="background-color:#51D0CA;">{$zj.yuangongtj}</td>
			<td style="background-color:#51D0CA;">{$zj.gdt}</td>
			<td style="background-color:#51D0CA;">{$zj.xhs}</td>
			<td style="background-color:#51D0CA;">{$zj.my}</td>
			<td style="background-color:#51D0CA;">{$zj.hlj}</td>
			<td style="background-color:#51D0CA;">{$zj.qt}</td>
			<td style="background-color:#51D0CA;">{$zj['tianmao']+$zj['weixin']+$zj['weibo']+$zj['dazhong']+$zj['sogou']+$zj['google']+$zj['so']+$zj['baidu']+$zj['laoguketj']+$zj['yuangongtj']+$zj['smtg']+$zj['gdt']+$zj['xhs']+$zj['my']+$zj['hlj']+$zj['qt']}</td>
			<td style="background-color:#51D0CA;"></td>
           
        </tr>
	</tbody>
    </table>

        </div>
    </div>
    <div class="page">
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    
</block>
